package cn.tedu.charging.order.feign;

import cn.tedu.charging.commen.JsonResult;
import cn.tedu.charging.commen.pojo.param.GunStatusUpdateParam;
import cn.tedu.charging.commen.pojo.vo.StationVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("deviceService")
public interface DeviceClient {
    @GetMapping("/device/station/info/{gunId}")
    JsonResult<StationVO> getStationInfo(@PathVariable("gunId") Integer gunId);

    @PostMapping("/device/station/gun/status/update")
    JsonResult<Boolean> updateGunStatus(@RequestBody GunStatusUpdateParam gunStatusUpdateParam);
}
